<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            width: 1240px;
            margin: 10px auto;
        }
        
        .demo1 {
            float: left;
        }
        
        .flip-container {
            perspective: 1000;
        }
        /* flip the pane when hovered */
        
        .flip-container:hover .flipper,
        .flip-container.hover .flipper {
            transform: rotateY(180deg);
        }
        
        .flip-container,
        .front,
        .back {
            width: 400px;
            height: 300px;
        }
        /* flip speed goes here */
        
        .flipper {
            transition: 0.6s;
            transform-style: preserve-3d;
            position: relative;
        }
        /* hide back of pane during swap */
        
        .front,
        .back {
            backface-visibility: hidden;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(0, 255, 0, 0.5);
        }
        /* front pane, placed above back */
        
        .front {
            z-index: 2;
        }
        /* back, initially hidden pane */
        
        .back {
            transform: rotateY(180deg);
            background-color: rgba(0, 255, 0, 0.5);
        }
        
        .img1 {
            position: relative;
        }
        
        .img01 {
            position: absolute;
            top: 0;
            left: 0;
        }
        
        .img2 {
            position: relative;
        }
        
        .img02 {
            position: absolute;
            top: 0;
            left: 0;
        }
        
        .img3 {
            position: relative;
        }
        
        .img03 {
            position: absolute;
            top: 0;
            left: 0;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="demo1 img1">
            <img src="images/slidepic1.jpg" />
            <div class="flip-container img01" ontouchstart="this.classList.toggle('hover');">
                <div class="flipper">
                    <div class="front">
                        webkit1
                    </div>
                    <div class="back">

                    </div>
                </div>
            </div>
        </div>
        <div class="demo1 img2">
            <img src="images/slidepic2.jpg" />
            <div class="flip-container img02" ontouchstart="this.classList.toggle('hover');">
                <div class="flipper">
                    <div class="front">webkit2
                    </div>
                    <div class="back">

                    </div>
                </div>
            </div>
        </div>
        <div class="demo1 img3">
            <img src="images/slidepic2.jpg" />
            <div class="flip-container img03" ontouchstart="this.classList.toggle('hover');">
                <div class="flipper">
                    <div class="front">
                        webkit3
                    </div>
                    <div class="back">

                    </div>
                </div>
            </div>
        </div>

    </div>

</body>

</html>